package cn.felord.verse.controller;

import cn.felord.common.http.BaseController;
import cn.felord.common.http.Rest;
import cn.felord.security.autoconfigure.annotation.Anonymous;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dax
 * @since 2023/12/12
 */
@RestController
@RequestMapping("/test")
public class TestController extends BaseController {
// https://zhuanlan.zhihu.com/p/616571219?utm_id=0

    @Anonymous
    @GetMapping("/hello")
    public Rest<?> hello() {
        throw new RuntimeException("error");
    }
}
